<template>
  <div style="cursor: pointer; background-color: #eeeeee">
    <div style="color: #409eff; text-align: center; padding-top: 5px">
      <span>头像审核</span>
    </div>
    <div style="font-size: 12px; display: block">
      <div style="margin-top: 5px; margin-left: 5px">提交审核时间:{{ data.auditTime }}</div>
      <div style="margin-top: -5px; margin-left: 15px">
        <el-button type="text" @click="toAvatar">操作</el-button>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'AuditCard',
    props: {
      data: {
        type: Object,
        requires: true,
        default: null,
      },
    },
    data() {
      return {}
    },
    methods: {
      toAvatar() {
        this.$router.push({
          name: 'avatar',
          params: {
            avatarId: this.data.avatarId,
          },
        })
      },
    },
  }
</script>

<style lang="scss" scoped></style>
